package com.funning.biz;

import java.util.List;

import com.funning.bean.OfFuning;
import com.funning.dao.IFuningDAO;

public class FuningSerice implements IFuning{
	
	private IFuningDAO funingDAO;
	
	
	public IFuningDAO getFuningDAO() {
		return funingDAO;
	}

	public void setFuningDAO(IFuningDAO funingDAO) {
		this.funingDAO = funingDAO;
	}

	public int deleteFuning(long id) {
		return funingDAO.deleteFuning(id);
	}

	public List<OfFuning> getAllFuning() {
		List<OfFuning>  list = funingDAO.getAllFuning();
		return list;
	}
	
	public OfFuning getFuningById(long id) {
		return funingDAO.getFuningById(id);
	}

	public boolean insertFuning(OfFuning funing) {
		return funingDAO.insertFuning(funing);
	}

	public int updateFuning(OfFuning funing) {
		return funingDAO.updateFuning(funing);
	}
	

	public OfFuning getNewFuning() {
		return funingDAO.getNewFuning();
}

	public List<OfFuning> getThreeFuning() {
		return funingDAO.getThreeFuning();
	}
	

}
